import _http from '@/utils/request'
import type {} from '@/api/acl/type'
// 统一管理接口
enum API {
  USERLIST_URL = '/acl/user/list',
  ROLELIST_URL = '/acl/role/list',

  ROLELIST_BYID_URL = '/acl/role/id/list',

  PERMISSIONLIST_URL = '/acl/permission/list',
}
export const resUserList = (params) =>
  _http.get<any, any>(API.USERLIST_URL, { params })

export const resRoleList = (params) =>
  _http.get<any, any>(API.ROLELIST_URL, { params })

export const resRoleListById = (params) =>
  _http.get<any, any>(API.ROLELIST_BYID_URL, { params })

export const resPermissionList = () =>
  _http.get<any, any>(API.PERMISSIONLIST_URL)
